package com.ncloud.crm.service.impl;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ncloud.crm.entity.BsProject;
import com.ncloud.crm.mapper.BsProjectMapper;
import com.ncloud.crm.service.BsProjectService;

@Service
public class BsProjectServiceImpl implements BsProjectService {
	
	private static final Logger logger = LogManager.getLogger(BsProjectServiceImpl.class);
	@Autowired
	private BsProjectMapper projectMapper;
	
	@Override
	public int insertBsProject(BsProject project) {
		return projectMapper.insertBsProject(project);
	}

	@Override
	public int updateBsProject(BsProject project) {
		return projectMapper.updateBsProject(project);
	}

	@Override
	public BsProject getProjectInfo(Long projectId) {
		return projectMapper.getProjectByPk(projectId);
	}
}
